import axios from "axios";
var http = axios.create({
	baseURL: 'http://localhost:8080/sfzy/', //http://localhost:3004/
	timeout: 6000,
	headers: {
		'Content-Type': 'application/json; charset=utf-8'
	}
});
http.interceptors.request.use(config => {
		return config
	},
	error => {
		return console.log('请求失败');
		// Promise.reject(error)
	}
)
http.interceptors.response.use(
	response => {
		return response.data
	},
	error => {
		return Promise.reject(error)
	}
)
export default http